package com.hilinos.cloud.gateway.common.conf;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

@Configuration
@ConfigurationProperties(prefix = "com.hilinos.cloud.gateway")
@Data
public class ServerConfig {

    /**
     * 不需要token验证的uri
     */
    private List<String> noTokenUris = new ArrayList<>();
    /**
     * origin域名白名单，跨域时使用
     */
    private List<String> originsDomainWhiteList = new ArrayList<>();

    /**
     * token认证对应的instance_id
     */
    private String tokenCheckInstanceId = "hilin-base";
    /**
     * token认证服务内网对应的uri
     */
    private String tokenInsideCheckInstanceUri = "/user/check/token";

    /**
     * token认证服务外网对应的uri
     */
    private String tokenOutsideCheckInstanceUri = "/api/base/user/check/token";

}
